FONT CHARACTER SPACING Each character of a font has a pixel width associated with it. When the character is displayed the text cursor advances by that width. The font also has a line spacing value associated with it. The line spacing value determines how many pixels are to occur between text lines (vertical spacing). FONT CHARACTER DISPLAY In font display mode characters have transparent backgrounds. That is, only pixels that are on are written to the screen. So a character cell around the character is not cleared. The XOR writing mode can be set via the TYPE SCREEN statement to cause characters to be blended with the current display. If XOR writing mode is off then characters are painted over the display. Because of the way in which characters are displayed, it is possible to overtype characters in a manner similar to on a typewriter producing the combined effect of more than one character. To remove a character from the screen, position the cursor to the exact location of the character, set the XOR writing mode (TS:O1) then type the same character again. See also: NH:, Font Editor NEW KEY - define keyboard codes NX: x,y ; x,y . . . NXS: The NX: statement may be used to change the code generated by any key on the keyboard. The normal codes generated are shown in appendix B. The number x shown above stands for the normal default value of a key, the letter y stands for the new value to be generated by the key. Both numbers are always in the range 0 to 255. Any number of keys may be redefined in one NX: statement. Each x,y pair is separated from the next by a semi-colon. Once a key has been redefined it affects all ACCEPT statements except those with the X modifier. The X modifier on an ACCEPT statement causes any key re- definitions to be ignored for that ACCEPT. The NXS: statement causes all keyboard keys to revert to their default values. NXS: undoes the effect of all previous NX: statements. EXAMPLE 1: new keys R: cause key f1 to generate code 225 (Beta) NX: 187,225 R: cause upper case A to give a-accent NX: 65,160 . . . R: restore upper case A to normal NX: 65,65 See also: ACCEPT PROBLEM - set options PR: option-list P: option-list PS: list PROBLEM has two uses. The first is to provide a destination point for a J:@P statement. In this case PROBLEM can be put at the very end of each frame or question. The option list would usually be omitted in this case. If the option list is omitted, then all options retain the settings prior to the PROBLEM statement. The second use is to specify one or more lesson options. Lesson options control various aspects of student responses, such as automatic case conversion of student answers or the student response time limit. Each option can be set (turned on) or it can be reset (turned off). The option-list consists of one or more of the option letters below. If the S modifier is not appended to the op code, then all options not included in the option-list are cleared or turned off. If the S modifier is appended to the op code (PS:), then options previously set remain set. Each option is then set if the corresponding letter is present in the option list. The possible options are shown here. U - if set, all student responses translated to upper case L - if set, all student responses translated to lower case S - if set, all spaces are removed from student responses G - if set, the GOTO command is enabled E - if set, the ESCAPE command is enabled F - if set, the function key ESCAPE command is enabled I - if set, error messages suppressed Error messages are not displayed, but the E flag is still set. Kname - set KEEP file name Sets the file name used by subsequent KEEP statements to name. name can be any file or path name per DOS conventions. W - clear label table Clears the label table and forgets about all labels passed so far. Thus it is impossible to jump backward. This allows re-use of the same labels. (Not recommended for use, present for compatibility only.) An - set answer maximum length Sets maximum ACCEPT response length to n characters. n may be a number from 1 to 256. A value of n less than 1 or greater than 256 sets the maximum response length to 256. Z - causes U, L, S, G, P and E options to be turned off Tn - set answer time maximum Set max Accept response time to n seconds, where 1